﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ASPItalia.ModelVirtualCasting.ObjectModel;

namespace ASPItalia.ModelVirtualCasting.Web.Models
{
    public class SearchCandidateResult : ISupportsPaging
    {
        public int Pages { get; private set; }
        public int CurrentPage { get; private set; }
        public string BaseUrl { get; set; }
        public List<Candidate> Items { get; private set; }

        public SearchCandidateResult(int currentPage, int pages, IEnumerable<Candidate> items)
        {
            this.CurrentPage = currentPage;
            this.Pages = pages;
            this.Items = new List<Candidate>(items);
        }
    }
}